import request from '@/utils/request'

export function modify(data) {
  return request({
    url: 'api/proInfo/modify',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: 'api/proInfo/'+id,
    method: 'get'
  })
}
//组合出所有学科分类下的课程分类列表
export function getSubjectTypeOfProtype() {
  return request({
    url: 'api/proInfo/getSubjectTypeOfProtype',
    method: 'get'
  })
}

export function delProById(id) {
  return request({
    url:'api/proInfo/'+id,
    method: 'delete'
  })
}
export function pageList(data) {
  return request({
    url: 'api/proInfo/pagelist',
    method: 'post',
    data
  })
}
export function updateEnabled(id) {
  return request({
    url: 'api/proInfo/'+id,
    method: 'delete'
  })
}
export default {
  modify,
  get,
  delProById,
  getSubjectTypeOfProtype,
  updateEnabled,
  pageList
}
